<?php

namespace App\Jobs;

use App\Services\WxMassService;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;

/**
 * 微信群发结果处理
 * @package App\Jobs
 */
class WxMassResultHandle implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    protected $eventData;
    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($eventData)
    {
        $this->eventData = $this->eventData;
    }
    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle(WxMassService $wxMassService)
    {
        $wxMassService->sendResultHandle($this->eventData);
    }
}
